#First Dockerfile
FROM centos:centos7.1.1503
MAINTAINER swper "hz328@qq.com"

ENV TZ "Asia/Shanghai"
ENV TERM xterm
RUN mkdir /etc/yum.repos.d/bak && cd /etc/yum.repos.d/ && mv /etc/yum.repos.d/*.repo bak/
ADD cdrom.repo /etc/yum.repos.d/cdrom.repo

RUN yum install -y httpd vim-minimal
RUN yum clean all
RUN mv /etc/yum.repos.d/bak/* /etc/yum.repos.d/
RUN sed -i 's/#ServerName www.example.com:80/ServerName 127.0.0.1:80/' /etc/httpd/conf/httpd.conf
EXPOSE 80
ENTRYPOINT ["/usr/sbin/httpd", "-D", "FOREGROUND"]